package com.dreamlike.nlp;

import com.dreamlike.nlp.Core.Verticle.VerticleHome;
import io.vertx.core.AsyncResult;
import io.vertx.core.Handler;
import io.vertx.core.Vertx;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;

import java.lang.reflect.Type;

@SpringBootApplication
@Slf4j
public class NlpApplication implements CommandLineRunner{
    @Autowired
    private VerticleHome verticleHome;


    public static void main(String[] args) {
        SpringApplication.run(NlpApplication.class, args);
    }

    @Override
    public void run(String... args) throws Exception {
        verticleHome.deployVerticle();

    }
}
